package com.cl.pile.rule.filter;

/**
 * @author chenyitao
 * @date 2021/4/20
 */
public class NotContainsFilterOperation extends BaseContentOperation implements IFilterOperation {
    @Override
    public boolean filterMatch(Object value, String matchValue) {
        if (value == null || matchValue == null) {
            return false;
        }
        return !replaceSpace(String.valueOf(value)).contains(matchValue);
    }

    @Override
    public String filterName() {
        return "不包含";
    }
}
